package com.yellowpage.wf.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * WorkflowNodeInstance entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "WF_WORKFLOW_NODE_INSTANCE")
public class WorkflowNodeInstance implements java.io.Serializable {

	// Fields

	private Long nodeInstanceId;
	private Long workflowNodeId;
	private Long workflowInstanceId;

	// Constructors

	/** default constructor */
	public WorkflowNodeInstance() {
	}

	/** full constructor */
	public WorkflowNodeInstance(Long workflowNodeId, Long workflowInstanceId) {
		this.workflowNodeId = workflowNodeId;
		this.workflowInstanceId = workflowInstanceId;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "NODE_INSTANCE_ID", unique = true, nullable = false, precision = 18, scale = 0)
	public Long getNodeInstanceId() {
		return this.nodeInstanceId;
	}

	public void setNodeInstanceId(Long nodeInstanceId) {
		this.nodeInstanceId = nodeInstanceId;
	}

	@Column(name = "WORKFLOW_NODE_ID", precision = 18, scale = 0)
	public Long getWorkflowNodeId() {
		return this.workflowNodeId;
	}

	public void setWorkflowNodeId(Long workflowNodeId) {
		this.workflowNodeId = workflowNodeId;
	}

	@Column(name = "WORKFLOW_INSTANCE_ID", precision = 18, scale = 0)
	public Long getWorkflowInstanceId() {
		return this.workflowInstanceId;
	}

	public void setWorkflowInstanceId(Long workflowInstanceId) {
		this.workflowInstanceId = workflowInstanceId;
	}

}